package com.ruoyi.material.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.material.domain.VimsImageInfo;
import lombok.Data;

import java.util.Date;

/**
 * @program: MSS
 * @description:
 * @author: cyw
 * @create: 2021-07-28 15:19
 **/
@Data
public class ImageVo {
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date captureTime;

    /** $column.columnComment */
    private String imgPath;

    /** $column.columnComment */
    private String channelName;

    /** $column.columnComment */
    private String channelCode;

    private String missionName;

    public VimsImageInfo transferToVimsImageInfo(){
        VimsImageInfo info = new VimsImageInfo();
        info.setCreateTime(captureTime);
        info.setChannelCode(channelCode);
        info.setChannelName(channelName);
        info.setImgUrl(imgPath);
        return info;
    }
}
